package zhtt.action04_namespace;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;

/**
 * Created by zhtt on 2017/4/18.
 */
@Namespace("/action04_namespace")
public class Namespace02 extends ActionSupport {

    @Action("index2-1")
    public String execute() {
        return SUCCESS;
    }

    @Action("index2-2")
    public String execute2() {
        return SUCCESS;
    }

    /**
     * todo:注意：以斜线开头则@Namespace对此将不启作用
     * @return
     */
    @Action("/index2-3")
    public String execute3() {
        return SUCCESS;
    }
}
